package com.wondertek.service.sdk.iotdh.dto.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

@Data
@Validated
public class DeviceDhAddReq {
    /*
     * 设备归属组织id
     * */
    @Schema(name = "orgId",description = "设备归属组织id")
    private String orgId;

    /*
     * 设备来源
     * */
    @Schema(name = "datasource",description = "设备来源")
    private String datasource;

    /*
     * 设备⼤类 详⻅附录1
     * */
    @Schema(name = "deviceType",description = "设备⼤类 详⻅附录1")
    private String deviceType;

    /*
     * 设备⼩类 详⻅附录1
     * */
    @Schema(name = "deviceSubType",description = "设备⼩类 详⻅附录1")
    private String deviceSubType;

    /*
     * 设备sn码
     * */
    @NotBlank(message = "device.sn.not.null")
    @Schema(name = "deviceSn",description = "设备sn码")
    private String deviceSn;

    /*
     * 设备的秘钥
     * */
    @Schema(name = "deviceSkCode",description = "设备的秘钥")
    @NotBlank(message = "device.key.not.null")
    private String deviceSkCode;

}
